package com.itheima.cs.entity.dbd;

import android.os.Parcel;
import android.os.Parcelable;
import java.util.Date;

public class InternalTransfer implements Parcelable {
    private int id;
    private String transferNumber;
    private String docType;
    private String outWarehouseNo;
    private String outWarehouseName;
    private String inWarehouseNo;
    private String inWarehouseName;
    private String fwcmPers;
    private String materialCode;
    private String materialName;
    private String materialSpec;
    private String etQuantity;
    private String date;
    private String userId;
    private String transferId;
    private String dbdUUID;

    public InternalTransfer() {
    }

    public InternalTransfer(int id, String transferNumber, String docType, String outWarehouseNo, String outWarehouseName, String inWarehouseNo, String inWarehouseName, String fwcmPers, String materialCode, String materialName, String materialSpec, String etQuantity, String date, String userId, String transferId) {
        this.id = id;
        this.transferNumber = transferNumber;
        this.docType = docType;
        this.outWarehouseNo = outWarehouseNo;
        this.outWarehouseName = outWarehouseName;
        this.inWarehouseNo = inWarehouseNo;
        this.inWarehouseName = inWarehouseName;
        this.fwcmPers = fwcmPers;
        this.materialCode = materialCode;
        this.materialName = materialName;
        this.materialSpec = materialSpec;
        this.etQuantity = etQuantity;
        this.date = date;
        this.userId = userId;
        this.transferId = transferId;
    }


    protected InternalTransfer(Parcel in) {
        id = in.readInt();
        transferNumber = in.readString();
        docType = in.readString();
        outWarehouseNo = in.readString();
        outWarehouseName = in.readString();
        inWarehouseNo = in.readString();
        inWarehouseName = in.readString();
        fwcmPers = in.readString();
        materialCode = in.readString();
        materialName = in.readString();
        materialSpec = in.readString();
        etQuantity = in.readString();
        date = in.readString();
        userId = in.readString();
    }

    public static final Creator<InternalTransfer> CREATOR = new Creator<InternalTransfer>() {
        @Override
        public InternalTransfer createFromParcel(Parcel in) {
            return new InternalTransfer(in);
        }

        @Override
        public InternalTransfer[] newArray(int size) {
            return new InternalTransfer[size];
        }
    };

    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    public String getTransferNumber() { return transferNumber; }
    public void setTransferNumber(String transferNumber) { this.transferNumber = transferNumber; }
    public String getDocType() { return docType; }
    public void setDocType(String docType) { this.docType = docType; }
    public String getOutWarehouseNo() { return outWarehouseNo; }
    public void setOutWarehouseNo(String outWarehouseNo) { this.outWarehouseNo = outWarehouseNo; }
    public String getOutWarehouseName() { return outWarehouseName; }
    public void setOutWarehouseName(String outWarehouseName) { this.outWarehouseName = outWarehouseName; }
    public String getInWarehouseNo() { return inWarehouseNo; }
    public void setInWarehouseNo(String inWarehouseNo) { this.inWarehouseNo = inWarehouseNo; }
    public String getInWarehouseName() { return inWarehouseName; }
    public void setInWarehouseName(String inWarehouseName) { this.inWarehouseName = inWarehouseName; }
    public String getFwcmPers() {
        return fwcmPers;
    }
    public void setFwcmPers(String fwcmPers) {
        this.fwcmPers = fwcmPers;
    }
    public String getMaterialCode() { return materialCode; }
    public void setMaterialCode(String materialCode) { this.materialCode = materialCode; }
    public String getMaterialName() { return materialName; }
    public void setMaterialName(String materialName) { this.materialName = materialName; }
    public String getMaterialSpec() { return materialSpec; }
    public void setMaterialSpec(String materialSpec) { this.materialSpec = materialSpec; }
    public String getEtQuantity() {
        return etQuantity;
    }
    public void setEtQuantity(String etQuantity) {
        this.etQuantity = etQuantity;
    }
    public String getDate() { return date; }
    public void setDate(String date) { this.date = date; }
    public String getUserId() { return userId; }
    public void setUserId(String userId) { this.userId = userId; }
    public String getTransferId() {
        return transferId;
    }
    public void setTransferId(String transferId) {
        this.transferId = transferId;
    }

    public String getDbdUUID() {
        return dbdUUID;
    }

    public void setDbdUUID(String dbdUUID) {
        this.dbdUUID = dbdUUID;
    }

    @Override
    public int describeContents() { return 0; }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(transferNumber);
        dest.writeString(docType);
        dest.writeString(outWarehouseNo);
        dest.writeString(outWarehouseName);
        dest.writeString(inWarehouseNo);
        dest.writeString(inWarehouseName);
        dest.writeString(fwcmPers);
        dest.writeString(materialCode);
        dest.writeString(materialName);
        dest.writeString(materialSpec);
        dest.writeString(etQuantity);
        dest.writeString(date);
        dest.writeString(userId);
        dest.writeString(transferId);
    }
}
